home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Online
/
Apache
/
cgi-bin
/
test-cgi.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-06-08
|
1KB
|
45 lines
/* Rexx script to test cgi variables */
options results
echo "Content-type: text/html"
echo ""
echo "CGI/1.0 test script report:"
echo ""
echo "<UL>"
getvar SERVER_SOFTWARE
echo "<LI>SERVER_SOFTWARE = " || result
getvar SERVER_NAME
echo "<LI>SERVER_NAME = " || result
getvar GATEWAY_INTERFACE
echo "<LI>GATEWAY_INTERFACE = " || result
getvar SERVER_PROTOCOL
echo "<LI>SERVER_PROTOCOL = " || result
getvar SERVER_PORT
echo "<LI>SERVER_PORT = " || result
getvar REQUEST_METHOD
echo "<LI>REQUEST_METHOD = " || result
getvar HTTP_ACCEPT
echo "<LI>HTTP_ACCEPT = " || result
getvar PATH_INFO
echo "<LI>PATH_INFO = " || result
getvar PATH_TRANSLATED
echo "<LI>PATH_TRANSLATED = " || result
getvar SCRIPT_NAME
echo "<LI>SCRIPT_NAME = " || result
getvar QUERY_STRING
echo "<LI>QUERY_STRING = " || result
getvar REMOTE_HOST
echo "<LI>REMOTE_HOST = " || result
getvar REMOTE_ADDR
echo "<LI>REMOTE_ADDR = " || result
getvar REMOTE_USER
echo "<LI>REMOTE_USER = " || result
getvar AUTH_TYPE
echo "<LI>AUTH_TYPE = " || result
getvar CONTENT_TYPE
echo "<LI>CONTENT_TYPE = " || result
getvar CONTENT_LENGTH
echo "<LI>CONTENT_LENGTH = " || result
getvar FILEPATH_INFO
echo "<LI>FILEPATH_INFO = " || result
echo "</UL>"